package cn.consult.controller.sys.apartment;

import cn.consult.common.api.CommonResult;
import cn.consult.sys.entity.TMeterReadingRecord;
import cn.consult.sys.service.TMeterReadingRecordService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ Author：周xx
 * @ Date：2024-04-16-18:04
 * @ Version：1.0
 * @ Description：
 */
@RestController
@RequestMapping("/apartment/record")
public class TRecordController {

    @Autowired
    TMeterReadingRecordService tMeterReadingRecordService;


    @GetMapping("/selectPage")
    public CommonResult selectPage(@RequestParam Map<String, Object> params) {
        PageInfo<TMeterReadingRecord> page1 = tMeterReadingRecordService.selectPages(params);
        return CommonResult.success(page1);
    }
}
